<template>
    <div class="lastcomment">
        <div v-for="(item , i ) of content" :key="'ss'+i" class="pensonal">
            <div class="header">
                <div class="headerimg"><img :src="item.user.avatar" alt=""></div>
                <div class="name">{{ item.user.uname }}</div>
            </div>
            <p>{{ item.content }}</p>
            <p>{{ item.time }}</p>
            <p>{{ item.style }}</p>
            <div class="showimage ">
                <div v-for="( lili, a  ) of item.images" :key="'a'+a"  > 
                    <img :src="lili" alt="" > 
                </div>
            </div>   
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },
    props: {
        content: null
    },
    components: {}
};
</script>

<style lang='less' scoped>
.lastcomment {
    .pensonal {
        margin-top: 30px;
        border-bottom: 1px solid #ccc;
        .header {
            display: flex;
            .headerimg {
                width: 50px;
                height: 50px;
                border-radius: 50px;
                img {
                    width: 50px;
                    height: 50px;
                }
            }
            .name {
                margin-left: 30px;
                width: 600px;
                height: 50px;
                line-height: 50px;
            }
        }
        .showimage {
            width:100%;
            display: flex;
            margin-top:20px;
            margin-bottom:20px;
            >div{
                margin-right:20px;
            }
            img{
            width: 100px;
            height: 100px;
            }
        }
    }
}
</style>
